﻿using System.Collections.Generic;
using System.Threading.Tasks;
using AppSocketEntity.GPS;

namespace AppSocketData.GpsInfo
{
    public interface IGpsInfoData
    {
        Task<int> DeleteAsync(string imei);
        /// <summary>
        /// GPS设备位置信息是否存在
        /// </summary>
        /// <param name="imei">imei号</param>
        /// <returns></returns>
        bool Exist(string imei);
        Task<GpsInfoEntity> GetByImeiAsync(string imei);
        Task<(int, IEnumerable<GpsInfoEntity>)> GetListAsync(int pageNo, int pageSize);
        Task<GpsInfoEntity> InsertAsync(GpsInfoEntity GpsInfoEntity);
        Task<GpsInfoEntity> UpdateAsync(GpsInfoEntity GpsInfoEntity);
    }
}